package com.itheima.youdianda.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.youdianda.entity.SysUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 *
 */
@Mapper
public interface Sys_UserMapper extends BaseMapper<SysUser> {

    @Insert("insert into sys_user (id,login_name,password,name,email,phone,login_ip,login_date,role_id,status,create_date,update_date) values (#{id} , #{loginName},#{password},#{name},#{email},#{phone} , #{loginIp},#{loginDate},#{roleId},#{status},#{createDate},#{updateDate})")
    void saveUser(SysUser sysUser);
}
